package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Product;
import cn.wolfcode.trip.base.query.ProductQuery;

import java.util.List;

public interface ProductMapper {
    //删
    int deleteByPrimaryKey(Long id);

    //增
    int insert(Product record);

    //查单
    Product selectByPrimaryKey(Long id);

    //查所有
    List<Product> selectAll();

    //修改
    int updateByPrimaryKey(Product record);

    //分页
    List<Product> selectForList(ProductQuery qo);
}